<?php
include("global.php");

$util =new Util();
$util->Init();


$action = $util->getvalue("hdAction");

if($action=="Add")
{
	$query ="INSERT INTO tblelectionVoter(ElectionId, Name, FilePath)  VALUES (".$util->getvalue("ddlFormerType").",'".$util->getvalue("txtName")."','".$util->getvalue("txtDuration")."')";
	$re =$util->Query($query);
}
elseif (	$action=="remove")
{
	$query ="DELETE FROM tblelectionVoter WHERE Id=".$util->getvalue("ddlFormerType");
	$re =$util->Query($query);
}
elseif (	$action=="Select")
{
}
echo $re;
?>